package com.ahzx.report.controller;

import com.ahzx.report.request.ReportQuery;
import com.ahzx.report.service.ReportService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 信易贷工作情况报表控制层
 *
 * @Author syg
 * @Date 2021/4/29 9:37
 * @Desc To be or not to be,that is a question.
 */
@RestController
@RequestMapping("/report")
public class CreditLoanReportController extends BaseController {

    @Autowired
    private ReportService reportService;

    /**
     * 信易贷工作情况报表
     *
     * @param
     * @return
     */
    @GetMapping("/creditLoan/list")
    public AjaxResult creditLoanList(ReportQuery reportQuery) {
        return AjaxResult.success(reportService.selectCreditLoanReportList(reportQuery));
    }
}
